package com.auto.learning.tools;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.GradientDrawable;

import com.auto.learning.R;

public class SkinShapeInfo {

	public static Drawable getButtonBackgroupColor(Context context){
		int strokeWidth = 5; // 3dp 边框宽度
	    int roundRadius = 10; // 8dp 圆角半径
	    int strokeColor = context.getResources().getColor(R.color.bk_grey);//边框颜色
	    GradientDrawable gd = new GradientDrawable();  //创建drawable
	    gd.setColor(strokeColor);
	    gd.setCornerRadius(roundRadius);
	    gd.setStroke(strokeWidth, strokeColor);
	    return gd;
	}
}
